package com.zhuangjie.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhuangjie.security.entity.AuthenticationTokens;
import com.zhuangjie.shop.dto.LoginDTO;
import com.zhuangjie.shop.entity.MerchantAccount;
import com.zhuangjie.shop.entity.Shop;

/**
 * <p>
 * 商家账号 服务类
 * </p>
 *
 * @author zhuangjie
 * @since 2023-09-24
 */
public interface MerchantAccountService extends IService<MerchantAccount> {

    MerchantAccount createShopOwnerAccount(Shop shop);

    AuthenticationTokens login(LoginDTO loginDTO) throws Exception;

    AuthenticationTokens refreshToken(String refreshToken) throws Exception;
}
